package com.sdkj.utils;

import org.springframework.data.redis.connection.jedis.JedisConnection;
import org.springframework.data.redis.connection.jedis.JedisConnectionFactory;

import redis.clients.jedis.Jedis;

public class RedisUtils extends JedisConnectionFactory{ 
	public Jedis getJedis(){
		Jedis jedis=null;
//		if (jedis == null) {
			JedisConnection jedisConnection = super.getConnection();
            jedis = jedisConnection.getNativeConnection();
			return jedis;
//		}
//		
//		return jedis;
	}
	
	
	
}
